package com.mobile.challenge.api;

import com.mobile.challenge.bean.BaseBean;
import com.mobile.challenge.bean.WeekMonthDataBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @Author Touge
 * @Date 2020/9/17 18:56
 * @Description
 */
public interface AdminOneDayService {

    // tracking/getAdminUnitReportByDay?userId=106&date=2020-09-15
    @GET("tracking/getAdminUnitReportByDay")
    Observable<BaseBean<WeekMonthDataBean>> getData(
            @Query("userId")
                    int userId,
            @Query("date")
                    String date
    );

}
